package com.woniuxy.intellihome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.intellihome.entity.Review;
import com.woniuxy.intellihome.entity.VGoods;
import com.woniuxy.intellihome.mapper.ReviewMapper;
import com.woniuxy.intellihome.mapper.VgoodsMapper;
import com.woniuxy.intellihome.service.ReviewService;
import com.woniuxy.intellihome.service.VgoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
@Service
public class VgoodsServiceImpl extends ServiceImpl<VgoodsMapper, VGoods> implements VgoodsService {
    @Autowired
    private VgoodsMapper vgoodsMapper;

    @Override
    public List<VGoods> getDetailById(int id) {
        return vgoodsMapper.getDetailById(id);
    }

    @Override
    public List<String> getAllSpecValues(int id) {
        return vgoodsMapper.getAllSpecValues(id);
    }
}
